Skip to content

[ENG-9044] Add manage command to resync preprint dois v1#11617

Open
Vlad0n20 wants to merge 2 commits intoCenterForOpenScience:feature/pbs-26-2from
Vlad0n20:fix/ENG-9044
Open

[ENG-9044] Add manage command to resync preprint dois v1#11617
Vlad0n20 wants to merge 2 commits intoCenterForOpenScience:feature/pbs-26-2from
Vlad0n20:fix/ENG-9044

Conversation

@Vlad0n20
Copy link
Contributor

@Vlad0n20 Vlad0n20 commented Mar 2, 2026

Ticket

Purpose

Changes

Side Effects

QE Notes

CE Notes

Documentation

Copy link
Collaborator

@cslzchen cslzchen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall. In addition to my questions/comments:

  • Can we add logs of the output of the logs for you local run?
  • We should also work with CE to test this command with a copy of production DB.

@Vlad0n20 Vlad0n20 changed the title Add manage command to resync preprint dois v1 [ENG-9044] Add manage command to resync preprint dois v1 Mar 9, 2026
Copy link
Collaborator

@cslzchen cslzchen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍

  • Make sure we test this against a copy of prod DB before running this on prod.
    • If there are errors, need look further on why they fail, and probably another fix.
    • Test if the default batch size is good, how long does it take, and also see how many times we need to repeat this.
  • Make sure whoever uses this command knows that we need to repeatedly run this command.

Comment on lines +113 to +117
help=(
'Maximum number of preprints to process per run (default: 500). '
'The command processes the first N eligible preprints and exits; '
're-run the command to continue with the next batch.'
),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I see. This is an OK alternative to the loop I suggested. Just need to make sure whoever runs this command is aware of the fact that they need to keep running this command until none exists. Cc @adlius for your input on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants